<?php

date_default_timezone_set('Asia/Shanghai');
//ini_set('error_reporting', 'E_ALL ^ E_NOTICE');
error_reporting(E_ALL);

class Config {
	//mysql信息
	public static $mysql_config = array(
		    'host' => '127.0.0.1',
			'port' => 3306,
			'username' => 'root',
			'password' => '123456',
			'dbname' => 'cs_majdb',
			'charset' => 'utf8mb4',
	);
	//redis用户信息
	public static $mod = 5;
	public static $redis_data_config = array(
	    array('host' => '127.0.0.1',  //redis主机
              'port' => '25000',  //端口
              'pass' => '123456abc')  //redis密码
	);
	
	//初始化接口密码
	public static $cache_pass = "zjhcache";

	public static $logger = null;
	public static $loggerError = null;
	public static $loggerDebug = null;
	public static $debug = false;
	
   //游戏服务参数
	public static $ip_server_confing = array(
	      'ip' => 'mjgame.wgb.cn',
	      'port'=> '10001'      
	);
	//token过期时间
	public static $tokenTime = 600;//秒
	
	//上报数据服务参数
	public static $data_report = array(
	    'ip' => '120.77.51.159',
	    'port'=> '5050' 
	    );
	//上报数据请求token登录参数
    public static $info_report = array(
	    'cid'=>'eba0c31b24dd1c8a709f1e777475101a',
		'user'=>'loguser_im01',
		'pass'=>'D71594f4ed_',
		'reportTokenTime'=>43200
	    );

	//图片url前缀
	public static $pic_prefix = 'http://im-res-image.oss-cn-shenzhen.aliyuncs.com/';
	
	
	//系统头像列表
	public static $headimgList = array(
	   'headimg_1' => array(1=>'f5c7153f80aa66f7a4f2fd9e0d9b996b',2=>'ed2f599a68d06f3079ca819d40fac2f1',3=>'3ff1f8c39e1473d028f73ce793519017'),
	   'headimg_2' => array(1=>'029d5f67b9adebbb5846906685db1755',2=>'c507f030f42425b9a335240fbb9827c6',3=>'c6a857837d350eba2d08e7024c05cfdb')
	);
	
	//加好友请求的passport
	public static $add_friend_url = 'https://172.18.197.35:40100/user/addFriendByPassport?gsKey=ed34f902dae9cee9fe9d77e34804c7f7';
	
	//独立包支付回调地址
	public static $independent_notify_url = 'http://172.18.197.38:8090/zjhpay/IndependentPayTrade.php';
	
	//平台包支付回调地址
	public static $platform_notify_url = 'http://172.18.197.38:8090/zjhpay/PlatformPayTrade.php';
	
	//游戏id
	public static $source = 10004;
	
	//二维码地址
	public static $qrcode_url = 'http://www.kdfa.cn/game/share_im/index.html';
}

Config::$logger =  new Logger("info");
Config::$loggerError =  new Logger("error");
Config::$loggerDebug =  new Logger("debug");
?>
